<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title><?php echo $news['title']; ?></title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0,minimal-ui">
<meta name="imagemode" content="force">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<link href="http://www.3045.com.cn/Public/user/Content/base.css?v=1" rel="stylesheet"/>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="http://cbjs.baidu.com/js/m.js"></script>
<style>
.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,a.list-group-item:focus{color:#555;text-decoration:none;background-color:#f5f5f5}
 .unfold-field{border-left:0;border-right:0;border-bottom:0;text-align:center;margin-bottom:20px;display:none}
.open-btn{display:block;padding:12px;border:1px solid #ddd;border-radius:5px;margin-top:20px}
.open-btn b{color:#5784df}
.unfold-field{text-align:center;margin-bottom:0; display:none;position:relative;margin-top:-25px;color:#54a0dc}
.unfold-field .text-link{cursor:pointer;font-size:16px;background-size:contain;display:inline-block;width:58px;height:58px;background:#fff;border-radius:29px;font-size:14px;box-shadow:0 -1px 4px 0 #fe5b02}
.unfold-field .text-link i{display:block;line-height:20px;font-style:normal; font-size:1.2em;text-align:center;color:#f8830c;}
.unfold-field .text-link i:first-child{margin-top:10px}
.content p {line-height: 1.75em;}

.page{height:30px;line-height:30px;margin:10px 0px;}
.page a{float:left;width:28%;height:30px;text-align:center;font-size:1.1em;display:inline-block;border-radius:3px;border-color:#ff9900;border-style:solid;border-width:1px;margin:0px 2.3%;}
.page a em{font-style:normal;}
.page .shi{background-color:#ff9900;color:#fff;font-weight:600;}
.page a i{font-size:16px;line-height:24px;}
.page .up i{background:url(/Public/User/images/c5.png) no-repeat;background-size:100% 100%;margin-top:5px;}
.page .up em{margin-left:3px;}
.page .pv i{background:url(/Public/User/images/c6.png) no-repeat;background-size:100% 100%;margin-top:5px;}
.page .pv em{margin-right:3px;}
.top_ad{ position: fixed; max-width: 640px;  min-width: 320px; height: 40px;}
.main_top {width:100%; background:#313131; width:100%; padding:10px 0 10px 0; float:left; font-size:0.9em;}
.main_top span.left {width:40px; text-align:center; padding-left:5px; padding-right:5px; float:left}
.main_top span.left img {width:100%;}
.main_top span.center {width:60%; color:#fff; float:left; padding-top:3px;}
.main_top span.right {width:20%; float:right; padding-top:10px; padding-right:5px; text-align:right;}
.bt1{ background:#ff9900;color:#fff; width:80%; height:30px; line-height:30px;-webkit-appearance:none; border:none; -moz-border-radius: 8px;-khtml-border-radius:8px;-webkit-border-radius: 8px;border-radius: 8px; display: block; text-align: center;} 

</style>
</head>
<body>

<!--div style="display: block;" id="cont_download" class="main_top pla_wx pla_ib pla_ab">
  <span class="left"><img src="http://pic.dyidai.com/template/green/images/logo.png" alt=""></span>
    <span class="center">{:C("site_name")}&nbsp;&nbsp;<img src="http://pic.dyidai.com/template/green/images/star.png" alt="" width="80"><br><font class="size4">每天五分钟，轻松月入万元！</font><br> </span>
    <span class="right"><a class="bt1"  href="#">关注</a> </span>
</div>
<div class="clear"></div-->


<div class="page-index" id="top">
  <div class="page-viewport">
    <div class="primary">
      <div class="thumb-hidden" style="width:0px;height:0px; overflow:hidden;"><img src="{$news['litpic']}" /></div>
      <h1 class="title"><?php echo $news['title']; ?></h1>
      <div class="meta"> <span class="time"><?php echo $news['time'];?></span> <span class="follow-name"><a href="<?php echo $news['weixin_url'];?>" class="sitename"><?php echo $news['weixin'];?></a></span> <span class="follow-image"><img src="__PUBLIC__/user/Content/images/fllow.gif" class="follow-image" /></span> </div>


  <?php if(is_get_url()){?>
 
 
 
 <?php } ?>
    <?php if(is_get_url()){?>
      <!-------gg1------>
        <div class="topimgad"> 
        <?php $pos1=getad(1); ?>
        <?php foreach($pos1 as $v): ?>
        <?php if($v['type']==1){?>
        <a href="<?php echo $v['url'];?>"><?php echo $v['text']; ?></a>
        <?php }else if($v['type']==2){?>
        <a href="<?php echo $v['url'];?>"><img src="<?php echo $v['pic']; ?>"></a>    
        <?php }else{?>
        <?php echo htmlspecialchars_decode($v['js']);?>
        <?php }?>
        <?php endforeach; ?>   
      </div>
      <!-------endgg1------>
      <?php } ?>
   
      <div class="content" style=" overflow:hidden">
       <?php echo htmlspecialchars_decode($news['content']); ?>
      </div>
      <div id="read-more" class="hide">
       <div class="unfold-field" style="display: block;">
      <a id="expandContent" class="text-link unfold-btn"><i>加载</i><i>全文</i></a>
      </div>
      </div>
      <div style="clear:both;"></div>
      <?php if(is_get_url()){?>
      <!-------gg2------>
      <div class="topimgad">
       <ul class="list-group">
        <?php $pos1=getad(2); ?>
        <?php foreach($pos1 as $v): ?>
        <?php if($v['type']==1){?>
        <li class="list-group-item"><a href="<?php echo $v['url'];?>"> <font color="#3f88c8">●&nbsp;&nbsp;</font><font color="black"><?php echo $v['text']; ?></font> </a></li>
        <?php }else if($v['type']==2){?>
        <a href="<?php echo $v['url'];?>"><img src="<?php echo $v['pic']; ?>"></a>    
        <?php }else{?>
        <?php echo htmlspecialchars_decode($v['js']);?>
        <?php }?>
        <?php endforeach; ?>  
        </ul>
      </div>
      <!-------endgg2------>
      <?php } ?>
      
 
       <div class="page">
        <a onclick="count_a(3)" class="up" href="{:show_last($id)}"><i>　</i><em>上一篇</em></a>
        <a onclick="count_a(3)" class="shi pla_wx_l" href="{:U('/Article/index')}">更多</a>
        <a onclick="count_a(3)" class="pv" href="{:show_next($id)}"><em>下一篇</em><i class="pv">　</i></a>
    </div>

      <div class="bottom_info"><a href="<?php echo $news['weixin_url'];?>">阅读原文 &nbsp;&nbsp;</a><span> 阅读 <em><?php echo $news['click']; ?></em></span> <span class="Report"><a>举报</a></span></div>
    </div>
 
   <?php if(is_get_url()){?>   
  <div class="primary">
      <div class="list-area2" id="recom-list">
        <h2 class="tit">精选推荐</h2>
        <div class="list">


          <?php $tuijian=tuijian($news['cid'],10);?>
          <?php foreach($tuijian as $key=>$v2):?>
          <?php if($key==3){?>

          <?php }?>
          <div class="cl">
          <div class="img"><a href="<?php echo show_url2($v2);?>" target="_self"><img src="<?php echo $v2['litpic'];?>"></a></div>
          <div class="txt"><h3><a href="<?php echo show_url2($v2);?>" target="_self"><?php echo $v2['title'];?></a></h3></div>
          </div>
          <div>
          <div class="line"></div>
        <?php endforeach; ?>
        
      </div>
      <div class="topimgad"> </div>
    </div>
  </div>
  <?php } ?>
 
    <?php if(is_get_url()){?>
    <?php $pos3=getad(3); ?>
    <?php if($pos3){?>
    <div class="tuiguang">
      <div class="t_top"> <span class="line"></span> <span class="text">推广</span> </div>
      <div class="topimgad"> 
         <ul class="list-group">
        <?php foreach($pos3 as $v): ?>
        <?php if($v['type']==1){?>
        <li class="list-group-item"><a href="<?php echo $v['url'];?>"> <font color="#3f88c8">●&nbsp;&nbsp;</font><font color="black"><?php echo $v['text']; ?></font> </a></li>
        <?php }else if($v['type']==2){?>
        <a href="<?php echo $v['url'];?>"><img src="<?php echo $v['pic']; ?>"></a>    
        <?php }else{?>
        <?php echo htmlspecialchars_decode($v['js']);?>
        <?php }?>
        <?php endforeach; ?>  
        </ul>
      </div>
      <?php } ?>
      <?php } ?>
  

  </div>
</div>

<div class="rfloat hide">
<a class="uptop" href="#top" data-href="ctop" target="_self"></a>
<a class="shouci" id="Favoritenum" href="{:U('/User/Api/Sharetofriend','','',C('SITE_URL'))}" target="_self"></a>
</div>
 <?php if(is_get_url()){?>
<div class="cnav hide">
<div id="Favoritenum2"><a class="shou" href="<?php echo U('/User/Api/Sharetofriend','','',C('SITE_URL')); ?>" target="_self"><i></i><em>收藏</em></a></div>
<div id="shouye"><a id="FCss" class="shou2" href="<?php echo U('/User/Api/Sharetofriend','','',C('SITE_URL')); ?>" target="_self"><i></i><em>我要赚钱</em></a></div>
<div><a id="page_shi2" class="huang" href="javascript:void(0)" target="_self"><i></i><em>换文章</em></a></div>
</div>
<?php } ?>

<script>
$(function () {
    $('.textInt .close').click(function () {
        $('.bottomtext').addClass('hide');
    });
    $('.content iframe').width('100%');
    $('.content iframe').each(function () {
        $(this).height(($(this).width() * 0.8) || 400);
    });
    $('.content iframe').attr("frameborder","0");
    $('.content iframe').attr("scrolling","no");
    //获取随机文章
	  $("#page_shi2").click(function(){
		  $.ajax({
        url:"/user/Api/shuiji",
        type: "POST",
        dataType: "json",
       success: function(data){
        var data1= eval(data);
        location.href=data1['url'];
        },
      });
		});
    //点击查看全问
    var slideHeight =885; // px 
    var defHeight = $('.content').height();
    if(defHeight >= slideHeight){
       $('.content').css('height' , slideHeight + 'px'); 
       $('#read-more').show(); 
       $("#expandContent").click(function(){
          $('.content').css("height","auto");
          $('#read-more').hide();
           $(".cnav").show();
           $(".rfloat").show();
       });
    }

});
function rightBar() {
        $(window).scroll(function () {
            var scroll_top = $(document).scrollTop();
            var content_height=$(".content").height();
            if (scroll_top >=content_height/2) {
                $(".cnav").show();
                $(".rfloat").show();
              }
              else{
                $(".cnav").hide();
                $(".rfloat").hide();
            }           
        });
    }
rightBar();
</script>
<div style="height:40px;"></div>
<?php if(is_get_url()){?>
<?php
$data=array(
  'id'=>$id,
  'uid'=>$uid
  );
import("Lib.Jifei.Jifei");
$jifei= new \Jifei($data);
if($jifei->Simple()){
?>
<script src="/User/So?v=1.2"></script>
<script>addShare('<?php echo $id;?>', '<?php echo $uid;?>','<?php echo $token;?>');</script>
<?php }else{
 if(C("JIFEI_DEBUG")){ 
   //echo "<div style='height:50px;'></div>";
   echo "<div class='padding-top:50px;'>";
   echo "DEBUG:".$jifei->lanjiinfo;
   echo "</div>";
  }
}
?>
<?php } ?>

<div style="display:none">
<script src="http://s11.cnzz.com/z_stat.php?id=1256674326&web_id=1256674326" language="JavaScript"></script>
</div>
 
</body>
</html>

